package com.jandar.pile.common;

import java.util.ArrayList;
import java.util.List;

public class CommonConstants {
    public static final String POST = "POST";
    public static final String GET = "GET";
    public static final String OPTIONS = "OPTIONS";
    public static final String DELETE = "DELETE";
    public static final String PUT = "PUT";
    public static final String HEAD = "HEAD";

    public static final List<String> HTTP_METHODS = new ArrayList<>();

    static {
        HTTP_METHODS.add(GET);
        HTTP_METHODS.add(POST);
        HTTP_METHODS.add(OPTIONS);
        HTTP_METHODS.add(DELETE);
        HTTP_METHODS.add(PUT);
        HTTP_METHODS.add(HEAD);
    }

    public static final String AUTH_HEADER = "Authorization";
    public static final String AUTH_TYPE = "Bearer";

    public static final String STATUS = "status";
    public static final String MSG = "msg";
    public static final String DATA = "data";

    public static final String ORIGINAL = "original";
    public static final String THUMBNAIL = "thumbnail";

    /***
     * 预期文件扩展名
     */
    public static final String EXPECTED_FILE_NAME_EXTENSION = "Expected File Name Extension";
    /***
     * 文件MINE类型
     */
    public static final String DETECTED_MIME_TYPE = "Detected MIME Type";
    /***
     * 图像宽度
     */
    public static final String IMAGE_WIDTH = "Image Width";
    /***
     * 图像高度
     */
    public static final String IMAGE_HEIGHT = "Image Height";
}
